﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SCS.Common.Models;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using SchoolCommunicationSystem.Infrastructure;
namespace SchoolCommunicationSystem.Models
{
    public class ListPrivateMessageViewModel
    {
        public IList<PrivateMessage> Messages { get; set; }
        public int? PageIndex { get; set; }
        public int? TotalCount { get; set; }
    }

    public class CreatePrivateMessageViewModel
    {
        
        [StringLength(150)]
        [Required(ErrorMessage = "Trường không được để trống")]
        [Display(Name="Người Nhận")]
        [AutoComplete("PrivateMessage", "AutoComplete")]
        public string UserToUsername { get; set; }

        [Display(Name="Tiêu Đề")]
        [Required(ErrorMessage = "Trường không được để trống")]
        public string Subject { get; set; }

        //[UIHint("bbeditor"), AllowHtml]
        //[UIHint("tinymceeditor"), AllowHtml]
        [UIHint("markdowneditor"), AllowHtml]
        [Display(Name = "Nội dung")]
        public string Message { get; set; }

        public string PreviousMessage { get; set; }
    }

    public class ViewPrivateMessageViewModel
    {
        public PrivateMessage Message { get; set; }
    }

    public class DeletePrivateMessageViewModel
    {
        public int Id { get; set; }
    }


}